<?php

/* We want to create button objects using this HTML template, 
and each time a button is created the object is added 
to the file "menu.php". The process is exactly the same as the Page class. */

class Button {

  // Create required variables
  var $ThisPage;
  var $ThisPage2;
  var $LinkText;
  var $basePath;
  // Navigation button template
  function Template2() {
    // Compares menu "page" with content "page"
    //echo "Thispage2 = " . $this->ThisPage2 ."  ThisPage =  " . $this->ThisPage;
   // echo $this->basePath;
    if ($this->ThisPage2 == $this->ThisPage) {
      echo '<li><strong>' . $this->LinkText . '</strong></li>';
     
    } else {
      echo '<li><a href="'. $this->basePath ."/cms/". $this->ThisPage2 . '.php' . '" title="' . $this->LinkText . '">' . $this->LinkText . '</a></li>';
    
    }
    echo "\n";
  }

  function DisplayThisPage2() {
    echo $this->ThisPage2;
  }

  function DisplayLinkText() {
    echo $this->LinkText;
  }

}

?>
